package com.boil.qz.safekavass.web.request.param;

import javax.validation.constraints.NotNull;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.Range;

/**
 * 
 * ID 请求参数。
 * 
 * @author ChenYong
 * @data 2016-10-09
 *
 */
public class IdParam {
	/** 编号 */
	@NotNull(message = "ID不能为空")
	@Range(min = Constants.VALUE_L_0, max = Long.MAX_VALUE, message = "ID在0至9223372036854775807之间")
	protected Long id;

	/**
	 * 
	 * 默认构造器。
	 * 
	 */
	public IdParam() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return String.format("IdParam [id=%s]", id);
	}
}